package com.pig4cloud.pig.village.contract.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pig4cloud.pig.village.api.dto.LandContractDTO;
import com.pig4cloud.pig.village.api.dto.LandContractTotalDTO;
import com.pig4cloud.pig.village.api.entity.LandContract;

import java.util.List;

/**
 * @author limbray.li
 * @date 2021/6/19
 */
public interface ILandContractService extends IService<LandContract> {
	IPage<LandContractDTO> selectForPage(Page page, Long teamId, Integer year, Long villagerId);

	LandContractDTO getDtoById(Long id);

	List<LandContractTotalDTO> teamTotal(Long teamId, Integer year);

	LandContractTotalDTO villageTotal(Integer year);
}
